//
//  WriteViewController.h
//  Moko
//
//  Created by cj848 on 11. 7. 23..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HttpConnectionDidFinishLoadingProtocol.h"
#import "UITextViewPlaceHolder.h"
#import "WriteView.h"
@interface WriteViewController : UIViewController<HttpConnectionDidFinishLoadingProtocol, UIActionSheetDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UITextViewDelegate, UITextFieldDelegate, UIAlertViewDelegate, UIPopoverControllerDelegate> {
    IBOutlet UITextField*   titleField;
    IBOutlet UITextField *sitelinkTextField;
    IBOutlet UIButton *imageAttach1Button;
    IBOutlet UIButton *imageAttach2Button;
    IBOutlet WriteView *writeView;
    IBOutlet UITextViewPlaceHolder*  contentTextView;
    UIView*                 activeView;
    BOOL                    isModify;
    NSString*               action;
    NSDictionary*           writeAndModVO;
    // 현재 선택된 첨부파일 버튼 태그
    NSInteger               currentAttachTag;
    UIImage*                attachImage1;
    UIImage*                attachImage2;
    CGRect                  firstContentTextViewFrame;
    // 글 자동 저장 스레드
    NSThread*               thread;
    // 아이패드를 위한 UIPopOverController 선언
    UIPopoverController* popOverController;
}
@property(nonatomic,assign, setter = modify:) BOOL isModify;
@property(nonatomic,retain) NSDictionary* writeAndModVO;

-(IBAction) registration;
- (IBAction)attachImage:(id)sender;
-(void)modify:(BOOL)mod;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil isModify:(BOOL)bModify vo:(NSDictionary*)writeVO;
-(void)backStep;
- (IBAction)hideKeyboard:(id)sender;
-(void)tempSaveThread;
@end
